package com.mz.mattress.core.service.impl;

import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.Banner;
import com.mz.mattress.core.mapper.BannerMapper;
import com.mz.mattress.core.service.BannerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class BannerServiceImpl implements BannerService {

    @Autowired
    private BannerMapper bannerMapper;

    @Override
    public Result<List<Banner>> list() {
        List<Banner> list = bannerMapper.list();
        return Result.ok(list);
    }

}
